using System.Web.Mvc;
using System.Web.Routing;
using Nop.Web.Framework.Mvc.Routes;

namespace Nop.Plugin.Payments.RbkMoney
{
    public partial class RouteProvider : IRouteProvider
    {
        public void RegisterRoutes(RouteCollection routes)
        {
            routes.MapRoute(
              "Plugin.Payments.RbkMoney.Configure",
              "Plugins/RbkMoney/Configure",
              new { controller = "RbkMoney", action = "Configure" },
              new[] { "Nop.Plugin.Payments.RbkMoney.Controllers" }
            );

            routes.MapRoute(
                "Plugin.Payments.RbkMoney.ResultURL",
                "Plugins/RbkMoney/Result",
                new { controller = "RbkMoney", action = "Result" },
                new[] { "Nop.Plugin.Payments.RbkMoney.Controllers" }
            );

            routes.MapRoute(
                "Plugin.Payments.RbkMoney.FailURL",
                "Plugins/RbkMoney/Fail",
                new { controller = "RbkMoney", action = "Fail" },
                new[] { "Nop.Plugin.Payments.RbkMoney.Controllers" }
            );
            routes.MapRoute("Plugin.Payments.RbkMoney.SuccessURL",
                 "Plugins/RbkMoney/Success",
                 new { controller = "RbkMoney", action = "Success" },
                 new[] { "Nop.Plugin.Payments.RbkMoney.Controllers" }
            );


        }
        public int Priority
        {
            get
            { return 0; }
        }
    }
}
